package com.qymerge.manage.base.dto;

import com.qymerge.manage.base.ro.MetaOrgRO;
import com.qymerge.manage.base.ro.MetaProfitReportItemRO;
import lombok.Data;

import java.util.List;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 *
 * @author Xiao
 * @date 2025/5/8 22:45
 * @version 1.0.0
 */
@Data
public class MetaProfitReportItemDTO extends MetaProfitReportItemRO implements Comparable<MetaProfitReportItemDTO> {

    private List<MetaProfitReportItemDTO> children;      // 子菜单

    @Override
    public int compareTo(MetaProfitReportItemDTO o) {
        return Long.valueOf(this.getVisOrder()).compareTo(o.getVisOrder());
    }


}
